package persistence.dao;

import persistence.exceptions.RepositoryException;
import model.User;

public interface UserDAO {

	String getPosition(int id) throws RepositoryException;

	User getPerson(int id, String op) throws RepositoryException;

	int getMinMaxId(String op) throws RepositoryException;

	int insertPerson(User p) throws RepositoryException;

	void updatePerson(User p) throws RepositoryException;

	void deletePerson(int id) throws RepositoryException;

	User[] searchUser(String user) throws RepositoryException;

}
